Business Rule to Automatically Create GroupCustomerNumber

This business rule generates the CustomerNumber when a new Group Customer is stored. To invoke this functionality, the <AutomaticCustomerNumber> tag should be set to 'Yes' or Optional in the GroupCustomerScreen business rule.

Prerequisites

  • A GroupCustomerScreen rule is required to add the new configuration rule.
  • A CustomerNumber is required in the AsSequence table.

New Items

Automatic Customer Number BR

  • This is a system rule to the Group Customer screen that defines how the Group Customer Number is generated.
  • Example is located at the Prototype Company level.

Changes to Existing Items

Group Customer Screen: A new attribute will be added to the Group Customer screen. Example located at the Prototype Company level.

<AutomaticCustomerNumber>Yes</AutomaticCustomerNumber>

Configuration Details

  • The configuration should show the automatic creation of a Group Customer Number.
  • The Group Customer screen <AutomaticCustomerNumber> should be set to 'Yes'.
  • The AutomaticCustomerNumber BR should set the Customer Number equal to GC as the first two characters followed by a 6-digit sequence number.

Group Customer Screen: A new attribute will be added to the Group Customer screen.

<AutomaticCustomerNumber>Yes</AutomaticCustomerNumber>

Automatic Customer Number BR: A new system rule to the Group Customer Screen.

<AutomaticCustomerNumber>
<Part TYPE="VALUE">GC</Part>
<Part TYPE="SYSTEMDATE" FORMAT="MMDDYYYY"> </Part>
<Part TYPE="SEQUENCE" FORMAT="000000">CustomerNumber</Part>
</AutomaticCustomerNumber>